package com.dogstudio.touchblack.app;

import android.app.Application;

import com.dogstudio.touchblack.config.Config;
import com.dogstudio.touchblack.utils.AppUtils;
import com.dogstudio.touchblack.utils.LogUtils;

public class GameApp extends Application {
    private static GameApp instance;

    public static GameApp get() {
        return instance;
    }


    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        initConfig();
    }

    private void initConfig() {
        Config.SCREEN_WIDTH = AppUtils.getScreenWidth(getApplicationContext());
        LogUtils.e("SCREEN_WIDTH:" + Config.SCREEN_WIDTH);
    }
}
